<?php
namespace app\api\interfaces;
/**
 * @name 微信粉丝管理模块
 * @sort 2
 */
interface UserInterface {
	/**
	 * @name  同步粉丝数据
	 * @sort 1
	 * @post k:appid,v:wx403a8141dca36f45,t:授权公总号appid,n:
	 * @case {"code":200,"flag":true,"msg":"已更新粉丝数据","data":[],"success":true,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
	 * @remark 错误返回json:{"code":401,"flag":false,"msg":"公众号未授权","data":[],"success":false,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
	 */
	public function actionList();

	/**
	 * @name  同步粉丝具体信息
	 * @sort 2
	 * @post k:appid,v:wx403a8141dca36f45,t:授权公总号的appid,n:
	 * @post k:openid,v:xxxxxxxxxxxxxxxx,t:用户openid,n:
	 * @case { "code": 200,"flag": true,"msg": "成功","data": {"id": "0b1293f615ac4f84db60c5d939429c2f","wx_account_id": "0","openid": "oTVrs0XfStjNWKCtRI6SaZqfAjYo","unionid": "","subscribe": "1532500707","unsubscribe": "0","nick_name": "不恋水的????。","sex": "1","city": "丰台","province": "北京","country": "中国","headimgurl": "http://thirdwx.qlogo.cn/mmopen/sgXw7ZQdGuRFvDEvqD2AfjUibXGzeNXAMBBHwjcY1icj6cb2nOIMvg8fMVwiaLCzlPhOB5LoC63KPssNoPF24zORMURuWh2O9c5/132","last_time": "0","qrcode": null,"date_added": "2018-08-09 17:15:19","groupid": "0","remark": "","tagid_list": "","subscribe_scene": "ADD_SCENE_SEARCH","qr_scene": "0","qr_scene_str": "","status": "1"},"success": true,"errorData": [],"md5": "1d8596b744314f51f06b5c34e9677a7a","alg": "SALT_MD5"}
	 */
	public function actionUser_info();

    /**
     * @name  同步<span style='color:red;font-size:16px'>所有数据</span>
     * @sort 3
     * @post k:appid,v:wx403a8141dca36f45,t:授权公总号appid,n:
     * @case {"code":200,"flag":true,"msg":"已更新粉丝数据","data":[],"success":true,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
     * @remark 错误返回json:{"code":401,"flag":false,"msg":"公众号未授权","data":[],"success":false,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
     */
	public function actionSync_data();
}